<template>
  <div>
    <van-nav-bar title="春雨会员" left-arrow @click="onClickLeft" />

    <div class="box">
      <div class="top">
        <span><img src="../../assets/img/会员.png" alt="" /></span>
        <span>春雨会员</span>
      </div>
      <div class="main">
        <div class="main-top">
          <div class="main-top-title"></div>
        </div>

        <div class="main-middle">
          <p class="privilege">会员特权</p>
          <div class="main-middle-text">
            <p class="text-pa">—<text>专享优惠</text>—</p>

            <div class="main-middle-tu">
              <div class="tu-left">
                <img src="../../assets/img/会员2.png" alt="" />
                <p class="left-text">三甲快问图文咨询</p>
                <p class="right-text">有效期内免费2次</p>
              </div>
              <div class="tu-right">
                <img src="../../assets/img/会员3.png" alt="" />
                <p class="left-text">图文咨询折扣</p>
                <p class="right-text">8.8折 优惠不限次</p>
              </div>
              <div class="tu-left">
                <img src="../../assets/img/会员4.png" alt="" />
                <p class="left-text">电话咨询折扣</p>
                <p class="right-text">8.8折 优惠不限次</p>
              </div>
              <div class="tu-right">
                <img src="../../assets/img/会员5.png" alt="" />
                <p class="left-text">商城会员价</p>
                <p class="right-text">商城，购药专享价</p>
              </div>
              <div class="tu-left">
                <img src="../../assets/img/会员6.png" alt="" />
                <p class="left-text">运费券</p>
                <p class="right-text">每月1张省￥12</p>
              </div>
            </div>
          </div>
          <div class="main-middle-text">
            <p class="text-pa">—<text>健康服务</text>—</p>

            <div class="main-middle-tu" id="text-tu2">
              <div class="tu-left">
                <img src="../../assets/img/会员7.png" alt="" />
                <p class="left-text">专属健康顾问</p>
                <p class="right-text">1v1健康管理全程陪伴</p>
              </div>
              <div class="tu-right">
                <img src="../../assets/img/会员8.png" alt="" />
                <p class="left-text">终身电子健康档案</p>
                <p class="right-text">专人精心维护</p>
              </div>
              <div class="tu-left">
                <img src="../../assets/img/会员9.png" alt="" />
                <p class="left-text">健康咨询</p>
                <p class="right-text">全科家庭医生 疾病日常管理</p>
              </div>
              <div class="tu-right">
                <img src="../../assets/img/会员10.png" alt="" />
                <p class="left-text">健康管理</p>
                <p class="right-text">跟踪健康问题 定期随访</p>
              </div>
            </div>
          </div>

          <div class="main-middle-text">
            <p class="text-pa">—<text>尊享服务</text>—</p>

            <div class="main-middle-tu" id="text-tu3">
              <div class="tu-left">
                <img src="../../assets/img/会员11.png" alt="" />
                <p class="left-text">就医绿色通道</p>
                <p class="right-text">专家面诊，住院手术</p>
              </div>
              <div class="tu-right">
                <img src="../../assets/img/会员12.png" alt="" />
                <p class="left-text">血压管理服务</p>
                <p class="right-text">智能血压计+科学管理</p>
              </div>
            </div>
          </div>

          <div class="main-middle-text">
            <p class="text-pa">—<text>健康知识</text>—</p>

            <div class="main-middle-tu" id="text-tu4">
              <div class="tu-left">
                <img src="../../assets/img/会员13.png" alt="" />
                <p class="left-text">专家讲堂</p>
                <p class="right-text">每月1场</p>
              </div>
              <div class="tu-right">
                <img src="../../assets/img/会员14.png" alt="" />
                <p class="left-text">健康科普定制推送</p>
                <p class="right-text">原价680元/年</p>
              </div>
              <div class="tu-left">
                <img src="../../assets/img/会员15.png" alt="" />
                <p class="left-text">育儿知识课堂</p>
                <p class="right-text">原价680元/年</p>
              </div>
            </div>
          </div>
        </div>
        <div class="main-bottom">
          <p class="privilege">会员故事</p>
          <div class="main-bottom-tu">
            <div class="bottom-tu-left">
              <p>万千绿卡会员的真实故事</p>
              <p>作为您身边懂医的朋友</p>
              <p>我们一直在您身边</p>
            </div>
            <div class="bottom-tu-right">
              <button @click="Tobthxq">详情</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
const onClickLeft = () => history.back()

import { useRouter } from 'vue-router'

const router = useRouter()

const Tobthxq = () => {
  router.push('/Tobthxq')
}
</script>

<style scoped lang="scss">
* {
  font-size: 14px;
}
.box {
  width: 100%;
  height: 100%;
  background-color: #f9f9f9;
}
.top {
  width: 100%;
  height: 50px;
  background: #29282c;
  color: #ead838;
  line-height: 50px;
  padding: 0 10px;
  span {
    padding: 0 5px;
    color: #ffefc1;
    font-weight: bold;
    img {
      height: 13px;
      width: 30px;
    }
    .left-text {
      font-weight: bold;
    }
  }
}

.main {
  height: 100%;
  width: 100%;
  // background-color: orange;
  .main-top {
    height: 170px;
    width: 100%;
    background-color: yellow;
    padding: 20px 15px;
    .main-top-title {
      height: 130px;
      width: 100%;
      background-color: red;
    }
  }

  .main-middle {
    height: 100%;
    width: 100%;
    // background-color: green;
    .privilege {
      height: 40px;
      width: 100%;
      // background-color: pink;
      font-weight: bold;
      font-size: 18px;
      line-height: 40px;
      padding: 0 15px;
    }
    .main-middle-text {
      height: 100%;
      width: 100%;
      // background-color: blueviolet;
      .text-pa {
        height: 40px;
        width: 100%;
        text-align: center;
        color: #f9e7d3;
        line-height: 40px;
        text {
          color: #edc088;
          padding: 0 15px;
        }
      }
      .main-middle-tu {
        height: 370px;
        width: 100%;
        // background-color: #ead838;
        padding: 0 15px;
        .tu-left {
          float: left;
          height: 110px;
          width: 45%;
          background-color: #f9f9f9;
          text-align: center;
          margin-bottom: 10px;
          img {
            height: 40px;
            width: 40px;
            border-radius: 50px;
            margin: 10px;
          }
          .left-text {
            font-weight: bold;
          }
          .right-text {
            font-size: 12px;
            color: #a9a9a9;
          }
        }
        .tu-right {
          float: right;
          height: 110px;
          width: 45%;
          background-color: #f9f9f9;
          text-align: center;
          margin-bottom: 10px;
          img {
            height: 40px;
            width: 40px;
            border-radius: 50px;
            margin: 10px;
          }
          .left-text {
            font-weight: bold;
          }
          .right-text {
            font-size: 12px;
            color: #a9a9a9;
          }
        }
      }
      #text-tu2 {
        height: 270px;
        width: 100%;
        // background-color: yellow;
      }
      #text-tu3 {
        height: 130px;
        width: 100%;
        // background-color: yellow;
      }
      #text-tu4 {
        height: 270px;
        width: 100%;
        // background-color: yellow;
      }
    }
  }
  .main-bottom {
    height: 200px;
    width: 100%;
    // background-color: yellow;
    padding: 0px 15px;
    .privilege {
      height: 40px;
      width: 100%;
      // background-color: pink;
      font-weight: bold;
      font-size: 18px;
      line-height: 40px;
      // padding: 0 10px;
    }
    .main-bottom-tu {
      height: 110px;
      width: 100%;
      background-color: #302f34;
      padding: 20px;
      color: #e6c687;

      .bottom-tu-left {
        float: left;
      }
      .bottom-tu-right {
        float: right;
        height: 30px;
        width: 80px;
        background-color: #e6c687;
        border-radius: 20px;
        margin-top: 15px;
        button {
          height: 100%;
          width: 100%;
          border: none;
          background-color: #e6c687;
          color: #000;
          border-radius: 20px;
        }
      }
    }
  }
}
</style>
